Tree.changed_ranges

Compare this old edited syntax tree to a new syntax tree representing the same document, returning a sequence of ranges whose syntactic structure has changed.

For this to work correctly, this syntax tree must have been edited such that its ranges match up to the new tree. Generally, youl want to call this method right after calling one of the [Parser::parse] functions. Call it on the old tree that was passed to parse, and pass the new tree that was returned from parse.

struct Tree
const nothrow
changed_ranges

Meta